package com.plant.es.test.client_version.handler;

import org.elasticsearch.client.RestHighLevelClient;

import java.io.IOException;

public class EsHandler {
    private EsInterface esInterface;

    private RestHighLevelClient esClient;

    public EsHandler(EsInterface esInterface, RestHighLevelClient esClient) {
        this.esInterface = esInterface;
        this.esClient = esClient;
    }

    public void process() throws IOException {
        esInterface.process(esClient);
    }
}
